package com.koron.sinoprobe.web.subpackage.service;

import com.koron.sinoprobe.web.subpackage.bean.dto.SubPackageDetailDTO;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

public interface SubPackageDetailService {

    SubPackageDetailDTO addSubPackageDetail(SessionFactory factory, SubPackageDetailDTO subPackageDetailDTO);

    List<SubPackageDetailDTO> batchSave(SessionFactory factory, List<SubPackageDetailDTO> list);

    List<SubPackageDetailDTO> getSubPackageDetailByPackageId(SessionFactory factory, String packageId);

    SubPackageDetailDTO getSubPackageDetailById(SessionFactory factory, String id);

    SubPackageDetailDTO updateSubPackageDetail(SessionFactory factory, SubPackageDetailDTO subPackageDetailDTO);

    int deleteSubPackageDetail(SessionFactory factory, String id);
}
